package com.myyl.springcloudconsumer.client;

import com.myyl.springcloudconsumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: myyl
 * @Time: 2019/7/27 - 19:39
 * @Description:
 */

@FeignClient("provider")
public interface UserClient {

    @GetMapping("user/{id}")
    User queryById(@PathVariable Integer id);

}
